package com.exahq.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 
 * </p>
 *
 * @author lhq
 * @since 2021-01-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Admin implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户编号
     */
    @TableId(value = "aid", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    @TableField("aName")
    @NotBlank(message = "用户名不能为空")
    private String aName;

    /**
     * 密码
     */
    @TableField("aPassword")
    @NotBlank(message = "密码不能为空")
    private String aPassword;

    /**
     * 标识
     */
    private String state;

    /**
     * 删除标记（1可见0不可见）用做逻辑删除
     */
    @TableLogic
    @TableField("del_flag")
    private String delFlag;

    @TableField("aStatus")
    private Integer aStatus;


}
